// --------------------------------------------------------------------------------------------------------------------
// <copyright file="frmAlterScript.cs" company="SmartPlan">
//   SmartPlan 2011
// </copyright>
// <summary>
//   Summary description for frmAlterScriptX.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace DbDiff.WinClient.Forms
{
	using System.ComponentModel;
	using System.Windows.Forms;
	using DbItems;

	/// <summary>
	/// Summary description for frmAlterScriptX.
	/// </summary>
	public class FrmAlterScript : Form
	{
		/// <summary>
		/// The btn ok.
		/// </summary>
		private Button btnOk;

		/// <summary>
		/// The uc code colorize 1.
		/// </summary>
		private UcCodeColorize codeColorize1;

		/// <summary>
		/// Initializes a new instance of the <see cref="FrmAlterScript"/> class.
		/// </summary>
		/// <param name="title">
		/// The title.
		/// </param>
		/// <param name="text">
		/// The alter text.
		/// </param>
		public FrmAlterScript(string title, string text)
		{
			// This call is required by the Windows Form Designer.
			this.InitializeComponent();

			this.Text = title;

			this.codeColorize1.SetText(text);
			this.codeColorize1.CopyPasteEnabled = true;
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">
		/// The disposing.
		/// </param>
		protected override void Dispose(bool disposing)
		{
			if (disposing)
			{
			}

			base.Dispose(disposing);
		}

		/// <summary>
		/// The frm alter script_ closing.
		/// </summary>
		/// <param name="sender">
		/// The sender.
		/// </param>
		/// <param name="e">
		/// The event args
		/// </param>
		private void FrmAlterScript_Closing(object sender, CancelEventArgs e)
		{
		}

		#region Windows Form Designer generated code

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.btnOk = new System.Windows.Forms.Button();
			this.codeColorize1 = new UcCodeColorize();
			this.SuspendLayout();
			// 
			// btnOk
			// 
			this.btnOk.Location = new System.Drawing.Point(472, 616);
			this.btnOk.Name = "btnOk";
			this.btnOk.TabIndex = 1;
			this.btnOk.Text = "OK";
			// 
			// ucCodeColorize1
			// 
			this.codeColorize1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.codeColorize1.Location = new System.Drawing.Point(0, 0);
			this.codeColorize1.Name = "codeColorize1";
			this.codeColorize1.Size = new System.Drawing.Size(1008, 661);
			this.codeColorize1.TabIndex = 2;
			// 
			// frmAlterScript
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(1008, 661);
			this.Controls.Add(this.codeColorize1);
			this.Controls.Add(this.btnOk);
			this.Name = "FrmAlterScript";
			this.Text = "FrmAlterScriptX";
			this.Closing += new System.ComponentModel.CancelEventHandler(this.FrmAlterScript_Closing);
			this.ResumeLayout(false);
		}

		#endregion
	}
}